package com.example.common.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@Table(name = "sys_module")
public class Module implements Serializable {

	private static final long serialVersionUID = 5458943418167170381L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "pid_bigint", columnDefinition = "bigint(20)")
	private Long pid;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "icon_nvarchar", columnDefinition = "varchar(255)")
	private String icon;
	@Column(name = "sort_int", columnDefinition = "int(11)")
	private Integer sort;
	@Column(name = "visible_bit", columnDefinition = "tinyint(1)")
	private Boolean visible;
	@Column(name = "url_nvarchar", columnDefinition = "varchar(255)")
	private String url;
	@Column(name = "show_url_nvarchar", columnDefinition = "varchar(255)")
	private String showUrl;

	@Transient
	@ApiModelProperty(value = "勾选标识")
	private Boolean checkType = false;
}
